package com.itheima.demo02;

import java.util.ArrayList;
import java.util.List;

public class MainClass05 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("a");
        list.add("b");
        list.add("c");
        list.add("d");
        list.add("e");

        System.out.println(list.get(0));
        list.remove(0);
        System.out.println(list);
        list.set(0,"qqq");
        System.out.println(list);
        list.add(0,"ddd");
        System.out.println(list);
    }
}
